<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="base.jsp" %>

<div class="top">
	<div class="welcome">
	<c:if test="${sessionScope.user!=null}">
		你好，<a href="usercenter.jspx" class="index">${user.username}</a>，
	</c:if>
	欢迎光临<a href="userIndex.jspx" class="index">bookstore</a>！</div>
	<div class="menu">
		<ul class="unstyled ul_menu">
			<c:choose>
				<c:when test="${sessionScope.user!=null}">
					<li class="li_menu"><a href="exit.jspx">安全退出</a></li>
				</c:when>
				<c:otherwise>
					<li class="li_menu"><a href="login.jspx">登录</a></li>					
				</c:otherwise>	
			</c:choose>
			<li class="li_menu"><a href="reg.jspx">注册</a></li>
			<div class="clear"></div>
		</ul>
	</div>
	<div class="clear"></div>
</div>